package generic;

public class GenericDemo {
    public static void main(String[] args) {
        Generic<String>g1 = new Generic<>();
        g1.setE("张三");
        System.out.println(g1.getE());

        Generic<Integer>g2 = new Generic<>();
        g2.setE(11);
        System.out.println(g2.getE());

        Generic<Boolean>g3 = new Generic<>();
        g3.setE(true);
        System.out.println(g3.getE());
    }
}
